package com.yunao.web.controller;

import com.yunao.commons.utils.JsonUtil;
import com.yunao.commons.utils.ResultVOUtil;
import com.yunao.commons.vo.ResultVO;
import com.yunao.entity.Position;
import com.yunao.service.PositionService;
import com.yunao.web.annotation.UserLoginToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

@RestController
public class PositionController {
    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Autowired
    private PositionService positionService;

    @RequestMapping("/user/positionmap")
    public ResultVO positionMap(){
//        Map<String,List<String>> map = ;
        return positionService.finAll();
    }

}
